class JSONSSError:

    def __init__ (self, code, message, data=None):
        self.code = code
        self.message = message
        self.data = data

    def getMessage(self):
        return self.message

    def simplify(self):
        return {"c": self.code, "m": self.message, "d": self.data}
